package Main
{
	import mx.collections.ArrayCollection;
	import mx.controls.Alert;

	/**
	 * This class holds and handles the atl rules received.
	 * */
	public class ATLRules {
		
		private var rules:ArrayCollection = new ArrayCollection();
		
		public function ATLRules(array:Array)
		{
			var i:int, tam:int = array.length;
			for (i = 0; i <tam; i++) {
				var names:String = array.pop() as String;
				rules.addItem(names);
				
			}
		}
		
		public function getRules():ArrayCollection {
			return rules;
		}
		
	}
}